/**
 * Created by mooshroom on 2015/3/1.
 */
require(['mmRouter'], function () {
    //首页
    avalon.router.get('/', function () {
        include.url = "./body/home.html";

    });



    //聊天弹出框
    avalon.router.get('/chat_room', function () {
         require(['chat'], function () {
             modal.url = "./body/chat.html";
             modal.getIn(550);
             avalon.scan();
            chat.ready();

         })

    });
    avalon.history.start();
    avalon.scan();
})